home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11190 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 KB

  1. Path: library.erc.clarkson.edu!rpi!not-for-mail
  2. From: ejh@larry.gsfc.nasa.gov (Edward Hartnett)
  3. Newsgroups: comp.lang.c++.moderated,comp.object,comp.lang.c++
  4. Subject: Re: how many classes are too much? trying to follow Robert Martin's advice
  5. Date: 12 Mar 1996 20:47:56 -0000
  6. Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA
  7. Sender: cppmods@netlab.cs.rpi.edu
  8. Approved: Dietmar.Kuehl@uni-konstanz.de
  9. Message-ID: <4i4nts$n1k@netlab.cs.rpi.edu>
  10. References: <4hn86s$im4@netlab.cs.rpi.edu> <4i1fim$bm5@netlab.cs.rpi.edu>
  11.     <4i3vke$jb4@netlab.cs.rpi.edu>
  12. NNTP-Posting-Host: netlab.cs.rpi.edu
  13. X-Original-Date: 12 Mar 1996 15:26:57 -0500
  14.  
  15. >>>>> "E" == Ell  <ell@access4.digex.net> writes:
  16.  
  17.     E> Robert C. Martin (rmartin@oma.com) wrote:
  18.     >> ...
  19.     >> Certainly there are costs.  You have named them.  Your design is
  20.     >> getting more complicated.  (Interesting isn't it.  When the design
  21.     >> becomes more complex, the code gets simpler.  Complex problems require
  22.     >> complex expressions.)  Your makefiles are more complex.  You need some
  23.     >> way to manage all the source files.
  24.     >> 
  25.     >> Now ask yourself if there is a net gain.  Is the system overall easier
  26.     >> to deal with?  
  27.  
  28. Oh absolutely.
  29.  
  30. In fact I was running up against the limits of complexity in my old
  31. pre-OO days. Every change I made caused bugs elsewhere. At least that
  32. problem is gone!
  33.  
  34.     E> In most cases where the complexity of a C++, or other oopl, project has
  35.     E> been previously addressed, the solution can be made into a library -
  36.     E> static or dynamic - which subsequent programmers can use with less
  37.     E> complexity.  This is a major part of the component and object reuse
  38.     E> motivation.  So that the design of similar future projects in the domain
  39.     E> are not generally as visibly (code weight wise) complex.
  40.  
  41. Yes, that is what I am doing.
  42. -- 
  43. Edward Hartnett                 ejh@larry.gsfc.nasa.gov
  44. * I don't speak for NASA or ARC, I just work for them! *
  45.      Goddard Distributed Active Archive Center (DAAC)
  46. Check out cool Earth Science data at: http://daac.gsfc.nasa.gov/
  47.  
  48.  
  49.       [ Articles to moderate: mailto:c++-submit@netlab.cs.rpi.edu ]
  50.       [  Read the C++ FAQ: http://www.connobj.com/cpp/cppfaq.htm  ]
  51.       [  Moderation policy: http://www.connobj.com/cpp/guide.htm  ]
  52.       [      Comments? mailto:c++-request@netlab.cs.rpi.edu       ]
  53.